﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VideoReflector.Models;

namespace VideoReflector.Controllers
{
    /// <summary>
    /// Event arguments associated with event occuring on finishing session load
    /// </summary>
    public class SessionLoadFinishedEventArgs : TaskFinishedEventArgs
    {
        private Session _chosenSession;

        /// <summary>
        /// Constructor for SessionLoadFinishedEventArgs object
        /// </summary>
        /// <param name="wasCancelled"> Whether the session load task was cancelled by the user </param>
        /// <param name="chosenSession"> Data object of the session chosen by the user to load,
        /// undefined if wasCancelled is true </param>
        public SessionLoadFinishedEventArgs(bool wasCancelled, Session chosenSession)
            : base(wasCancelled)
        {
            _chosenSession = chosenSession;
        }

        /// <summary>
        /// The session instance chosen to be loaded
        /// </summary>
        public Session ChosenSession { get { return _chosenSession; } }
    }
}
